/* Layout */
import Layout from '@/layout'
export const terminal = [
  {
    path: '/terminal',
    component: Layout,
    alwaysShow: true,
    redirect: '/terminal/index',
    name: 'terminal',
    roles: ['client:page'],
    meta: { title: '终端', roles: ['client:page'], icon: 'client' },
    children: [
      {
        path: 'index',
        component: () => import('@/views/terminal/index'),
        name: 'terminalList',
        meta: { title: '终端列表', roles: ['client:page'], icon: 'client_line' }
      },
      {
        path: 'terminalDetail',
        component: () => import('@/views/terminalDetail/index.vue'),
        name: 'terminalDetail',
        hidden: true,
        meta: { title: '终端详情', roles: ['client:page'], icon: 'el-icon-monitor' }
      },
      {
        path: 'groupManager',
        component: () => import('@/views/groupManager/index'),
        name: 'terminalList',
        meta: { title: '分组管理', roles: ['client:page'], icon: 'group' }
      },
      {
        path: 'fileList',
        component: () => import('@/views/terminal/page/fileList.vue'),
        name: 'fileList',
        hidden: true,
        meta: { title: '终端文件', roles: ['client:page'], icon: 'el-icon-files', noCache: true }
      }
    ]
  },
]
